<?php

require_once "Common/database.php";
require_once "Common/values.php";


echo '<p><h3>Add Inventory </h3>';
echo '<table border=1>';
echo '<FORM action="inventory/insert.php" method="POST">';
echo '<tr align=Left><td><p align=right>ID :<INPUT type="hidden" name=key value='.$row['key'].'> '.$row['key'].'</td></tr>';
echo '<tr><td><p align=right>Branch : <INPUT type="text" name="branch" value='.$row['Branch'].'></td></tr>';
echo '<tr align=Left><td><p align=right>Department : <INPUT type="text" name="department" value="'.$row['Department'].'"></td></tr>';
echo '<tr align=Left><td><p align=right>Type : <INPUT type="text" name="type" value="'.$row['Type'].'"></td></tr>';
echo '<tr align=Left><td><p align=right>Serial Number : <INPUT type="text" name="serial" value="'.$row['Serial'].'"></td></tr>';
echo '<tr align=Left><td><p align=right>Checked By : <SELECT name="checkedby">';
echo '<option>'.$row['CheckedBy'].'</option>';
genOperator();
echo'</SELECT></td></tr>';
echo '<tr align=Left><td><p align=right>Date Checked : <INPUT type="text" name="date" value="'.$row['DateChecked'].'"></td></tr>';
echo '<tr align=Left><td><p align=right>Reason : <textarea name=reason>'.$row['Reason'].'</textarea></td></tr>';
echo '<tr align=Left><td><p align=right>Action : <textarea name=action>'.$row['Action'].'</textarea></td></tr>';
echo '<tr align=Left><td><p align=right>Faulty : <INPUT type="text" name="faulty" value='.$row['Faulty'].'></td></tr>';
echo '<tr align=Left><td><p align=right>Status : <INPUT type="text" name="status" value='.$row['Status'].'></td></tr>';
echo '<tr align=Left><td><p align=right><INPUT type="submit" value="Update"></td></tr>';
echo '</FORM></table>';
mysql_close();
?>